<?php
namespace app\mall_back\model;

use app\data\model\DataUser;
use think\admin\Model;

class TescoCommentModel extends Model{

    protected $table = 'one_tesco_comment';


    function commentUser(){
        return $this->belongsTo(DataUser::class,'u_id')->bind(['nickname','headimg']);
    }

    function goodsLuckyDraw(){
        return $this->belongsTo(GoodsLuckyDrawModel::class,'lucky_draw_id','id');
    }



}